<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ page import="java.net.URLDecoder" %>
<%--<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>--%>
<%
    String basePath = "http://192.168.1.120:8050/empMaven/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>登录</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
</head>
<body>
    <center>
        <font color="red">${URLDecoder.decode(param.error,"utf-8")}</font>
        <form action="user/login" method="post">
            姓名:<input type="text" name="name" value="${URLDecoder.decode(cookie.name.value,"utf-8")}"><p/>
            密码:<input type="password" name="pwd" value="${cookie.pwd.value}"><p/>
            <input type="checkbox" name="isno" value="yes" checked="checked">记住用户名密码
            <p/>
            <input type="submit" value="登录">
            <a href="user/reg.jsp"><input type="button" value="去注册"></a>
        </form>
    </center>
</body>
</html>